/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import connectivity.QueryManager;
import java.sql.Time;

import java.util.Date;
import main.BarApplication;

/**
 *
 * @author Home
 */
public class GroupActivity {

    private int activityID;
    private int activityrooster;
    private int branchID;
    private int studioID;
    private String activityname;
    private String dag;
    private Time begintijd;
    private Time eindtijd;
    private Date begindatum;
    private Date einddatum;
    private int aantal;
    private String descr;
    private int coachActiviteitId;

    public GroupActivity() {
    }

    public GroupActivity(int activityID, String activityname, String descr) {
        this.activityID = activityID;
        this.activityname = activityname;
        this.descr = descr;
    }
        public GroupActivity(int coachActiviteitId, int activityrooster, int aantal){
        this.activityrooster = activityrooster;
        this.aantal = aantal;
        this.coachActiviteitId = coachActiviteitId;
    }


    public GroupActivity(int activityrooster, int activityID, int branchID, int studioID, String dag, Time begintijd, Time eindtijd, Date begindatum, Date einddatum) {
        this.activityrooster = activityrooster;
        this.activityID = activityID;
        this.branchID = branchID;
        this.studioID = studioID;
        this.dag = dag;
        this.begintijd = begintijd;
        this.eindtijd = eindtijd;
        this.begindatum = begindatum;
        this.einddatum = einddatum;
      
    }

    public GroupActivity(int activityrooster, int activityID, int branchID, int studioID, String dag, Time begintijd) {
        this.activityrooster = activityrooster;
        this.activityID = activityID;
        this.branchID = branchID;
        this.studioID = studioID;
        this.dag = dag;
        this.begintijd = begintijd;
    }

    public GroupActivity(int activityID, int branchID, int studioID, String dag, Time begintijd) {
        this.activityID = activityID;
        this.branchID = branchID;
        this.studioID = studioID;
        this.dag = dag;
        this.begintijd = begintijd;
    }

    public GroupActivity(int activityID) {
        this.activityID = activityID;
    }

    public void updateRooster() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.UpdateGroupActivityRooster(this);
    }

    public void insertRooster() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.addGroupActivityRooster(this);
    }

    public void update() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.UpdateGroupActivity(this);

    }

    public void insert() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.addGroupActivity(this);
    }

       public void insertCoachActiviteit(){
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.setCoachActivity(this);
    }
    public void updateCoachActiviteit() {
        QueryManager queryManager = BarApplication.getQueryManager();
        queryManager.UpdateCoachActivity(this);

    }

    public int getActivityrooster() {
        return activityrooster;
    }

    public void setActivityrooster(int activityrooster) {
        this.activityrooster = activityrooster;
    }

    public int getActivityID() {
        return activityID;
    }

    public void setActivityID(int activityID) {
        this.activityID = activityID;
    }

    public String getActivityname() {
        return activityname;
    }

    public void setActivityname(String activityname) {
        this.activityname = activityname;
    }

    public int getBranchID() {
        return branchID;
    }

    public void setBranchID(int branchID) {
        this.branchID = branchID;
    }

    public int getStudioID() {
        return studioID;
    }

    public void setStudioID(int studioID) {
        this.studioID = studioID;
    }

    public String getDag() {
        return dag;
    }

    public void setDag(String dag) {
        this.dag = dag;
    }

    public Time getBegintijd() {
        return begintijd;
    }

    public void setBegintijd(Time begintijd) {
        this.begintijd = begintijd;
    }

    public Time getEindtijd() {
        return eindtijd;
    }

    public void setEindtijd(Time eindtijd) {
        this.eindtijd = eindtijd;
    }

    public Date getBegindatum() {
        return begindatum;
    }

    public void setBegindatum(Date begindatum) {
        this.begindatum = begindatum;
    }

    public Date getEinddatum() {
        return einddatum;
    }

    public void setEinddatum(Date einddatum) {
        this.einddatum = einddatum;
    }

    public int getAantal() {
        return aantal;
    }

    public void setAantal(int aantal) {
        this.aantal = aantal;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
    
    public int getCoachActiviteit() {
        return coachActiviteitId;
    }

    public void setCoachActiviteit(int coachActiviteit) {
        this.coachActiviteitId = coachActiviteit;
    }
}
